#ifndef MISSILEBODY_H
#define MISSILEBODY_H

#include "GravBody.h"
#include "Missile.h"

class MissileBody : GravBody {
	public: 
		void missileInit(int ID, Missile* mInfo, Vec3f loc, Vec3f dest);
		
		void explodeMissile();
		bool isExploded();
		void updatePosition(float timeStep);
		void updateMissileHistory(float timeStep);
		const Vec3f* getDestination();
		float getProgress();
		float getOnTime();
		const Vec3f* getMLoc();
		float getMMass();



	private:
		Missile* myInfo;
		Vec3f destination;
		Vec3f lastPos;
		float distance;
		float orgDist;
		float progress;
		float onTime;

		bool exploded;

};

#endif  /* MISSILEBODY_H */